package com.gitlab.bootren.data.core.query;


/**
 * 查询语句条件
 * @author tengda
 *
 */
class QlCondition extends AbstractCondition{

	private String jpql = null;
	
	/**
	 * 构建一个语句条件
	 * @param jpql jpql语句
	 */
	public QlCondition(String jpql) {
		this.jpql = jpql ;
	}
  
	
	@Override
	public String ql() {
		return this.replaceAlias(jpql,"");
	}

	@Override
	public String ql(String aliasName) {
		return this.replaceAlias(jpql,aliasName);
	}

}
